package com.itheima.practice;

public class _04数组元素的复制 {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5};
        int[] arr_new=new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            arr_new[i]=arr[i];
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr_new[i]);
        }
    }
}
